<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="copyright" content="闻康集团刘代明监制" />
<meta name="robots" content="all" />
{$css_file}{$js_file}{$js_dialog}
<script type='text/javascript'>
     function addapp(type,appid,appname){
         if (type == 1) {
             var title = '创建APP';
             var html = '<form action="__GROUP__/Disassistant/addDisApp" method="post" id="disapp">';
             html += '<div class="estransfer"><ul>';
         	 html += '<li id="error" style="color:red;margin-bottom:20px; text-align:center;"></li>';
         	 html += '<li><span>APP 名称：</span><input id="app" type="text" name="appname" value=""/></li>';
         	 html += '</ul></div></form>';
         } else {
             var title = '修改APP';
             var html = '<form action="__GROUP__/Disassistant/addDisApp" method="post" id="disapp">';
             html += '<div class="estransfer"><ul>';
         	 html += '<li id="error" style="color:red;margin-bottom:20px; text-align:center;"></li>';
         	 html += '<li><input id="appid" type="hidden" name="id" value="'+appid+'" /></li>';
         	 html += '<li><span>APP 名称：</span><input id="app" type="text" name="appname" value="'+appname+'"/></li>';
         	 html += '</ul></div></form>';
         }
    	 $.dialog({
             title:title,
			 fixed:true,
		     resize: false,
		     ok:true,
		     cancelVal: '取消',
		     cancel: true,
	    	 content:html,
	    	 ok:function(){
		    	 var name=$("#app").val();
		    	 if (name == '') {
		    		 $("#error").html("APP命名为空");
		    		 return false;
		    	 }
		    	 $("#disapp").submit();
	    	 }
    	 });
     }
</script>
</head>
<body>
<div class="main">
	<div class="crumbs">
	当前位置：<span id="current_pos">面板->疾病APP->疾病APP列表</span>
	</div>
    <div class="m_content" id="right_main">
        <div class="content_menu blue line-x">
            <a class="on" href="javascript:void(0);" onclick="addapp(1,0,'');"><em>创建APP</em></a>
        </div>
        <div>
			<form  method="post" action="" name="myForm">
                <div class="table_list">
                <table width="100%" cellspacing="0">
                	<thead>
                		<tr>
                			<th align="left">序号</th>
                			<th align="left">APP编号</th>
                			<th align="left">APP名称</th>
                			<th align="left">创建时间</th>
                			<th align="left">创建者</th>
                			<th align="left">操作</th>
                		</tr>
                	</thead>
                    <tbody id="data">
                    <volist name="list" id="vo" empty="$empty">
                    <tr>
                    	<td align="left">{$vo.id}</td>
                    	<td align="left">{$vo.appno}</td>
                    	<td align="left">{$vo.appname}</td>
                    	<td align="left">{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                    	<td align="left">{$vo.adduser}</td>
                		<td align="left">
                			<a href="javascript:void(0);" onclick="addapp(2,{$vo.id},'{$vo.appname}');">[修改]</a>
                		</td>
                    </tr>
                    </volist>
					</tbody>
                </table>
			    <div class="page_number">{$page}</div>	
    		</div>
    		
    		</form>
		</div>
    </div>
</div>
</body>
</html>